﻿using System;
using System.Web.UI;
using Controllers;

namespace Web
{
    public partial class CardSign : Page
    {
        protected string cardLogs;
        protected void Page_Load(object sender, EventArgs e)
        {
            string formNo = Request.QueryString["formNo"];
            int empId = int.Parse(formNo.Substring(10, 3));

            DateTime sDate = new DateTime(2000 + int.Parse(formNo.Substring(13, 2)), int.Parse(formNo.Substring(15, 2)), 1);
            DateTime eDate = sDate.AddMonths(1).AddDays(-1);
            CardController cardController = new CardController();
            cardLogs = cardController.FindByEmpId(empId, sDate, eDate);
        }
    }
}